package com.xiaomai.eduservice.client;

import com.xiaomai.commonutil.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "service-vod",fallback = VodFileDegradeFeignClient.class)
@Component
public interface VodClient {

    //调用vod模块删除小节视频
    @DeleteMapping("/eduvod/video/removeAlyVideo/{videoId}")
    public R removeAlyVideo(@PathVariable("videoId") String videoId);
    //调用vod模块删除课程视频
    @DeleteMapping("/eduvod/video/removeCourseAliyunVideos")
    public R removeCourseVideos(@RequestParam("VideoList") List<String> VideoList);
}
